//
//  UIImage+CQImage.m
//  01-OC微博
//
//  Created by 陈乾 on 15/10/21.
//  Copyright © 2015年 陈乾. All rights reserved.
//

#import "UIImage+CQImage.h"

@implementation UIImage (CQImage)

/**
 *
 不使用系统的渲染图片 原始的图片
 */
+(instancetype)imageOriginalWithImageName:(NSString*)imageName
{
    UIImage *image = [UIImage imageNamed:imageName];
    
    return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

}

/**
 *  图片拉伸
 */
+(instancetype)imageStretchableWithImageName:(NSString*)imageName{
    
    
    UIImage *image = [UIImage imageNamed:imageName];
    return  [image stretchableImageWithLeftCapWidth:image.size.width*0.5 topCapHeight:image.size.height*0.5];
    

}
@end
